<template>
    <h2>管理员查看用户理财</h2>

    <table class="table table-bordered">
        <tr>
            <td>用户名</td>
            <td>理财名称</td>
            <td>年收益</td>
            <td>利息</td>
            <td>最低金额</td>
          
            <td>风险等级</td>
         
        </tr>
        <tr v-for="item in list">
            <td>{{ item.U_Name }}</td>
            <td>{{ item.F_Name }}</td>
            <td>{{ item.F_Year }}</td>
            <td>{{ item.I_Name }}</td>
            <td>{{ item.F_MinMoney }}</td>
        
            <td>{{ item.F_Level }}</td>
     
        </tr>
    </table>

</template>

<script setup lang="ts">
import {ref, reactive, onMounted,toRefs} from 'vue'
import {useRouter,useRoute} from 'vue-router'
import axios from 'axios';
const router=useRouter();
const route=useRoute();
const data:any=reactive({
    state:{
       
    },
    ListCount:'',
    PageCount:'',
    list:[],
    llist:[]
})
let {state,list,ListCount,PageCount,llist} =toRefs(data);
onMounted(()=>{
  show();

})

//8.	管理员-理财列表分页展示
const show=()=>{
    axios({
        url:"/api/Finance/GetAdminrFinance",
        method:'get',
        params:{
            fid:route.query.id
        }
    })
    .then(res=>{
        console.log(res);
        list.value=res.data.data;
    })
}


</script>


<style>


</style>